package top.component;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class ComponentCase implements ComponentInter{

    @Value("人生")
    private String name;
    @Value("1000")
    private String age;
    private ComponentCase2 componentCase2 ;
    public ComponentCase(@Autowired ComponentCase2 componentCase2){
        this.componentCase2 = componentCase2;
    }
}
